package com.boarsoft.boar.config.entity;

import java.util.HashSet;
import java.util.Set;

import com.boarsoft.boar.entity.AppInfo;

public class ConfigVar implements java.io.Serializable {
	private static final long serialVersionUID = -4722299192451803504L;
	public static final short STATUS_NOUSE = 0;
	public static final short STATUS_INUSE = 1;

	/** 配置变量的ID */
	private String id;
	/** 配置变量的APPID */
	private String appId;

	private String appCode;
	/** 配置变量所属系统的ID */
	private String projId;
	/** 配置变量分组 */
	private String group;
	/** 存储介质 */
	private String store;
	/** 配置变量名 */
	private String name;
	/** 配置变量的版本号 */
	private String ver;
	/** 配置变量的值 */
	private String value;
	/** 配置变量状态 */
	private short status;
	/** 配置变量的备注 */
	private String memo;
	/** 用于前端展示的env */
	private String env;

	private Set<AppInfo> apps = new HashSet<AppInfo>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppCode() {
		return appCode;
	}

	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStore() {
		return store;
	}

	public void setStore(String store) {
		this.store = store;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Set<AppInfo> getApps() {
		return apps;
	}

	public void setApps(Set<AppInfo> apps) {
		this.apps = apps;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getProjId() {
		return projId;
	}

	public void setProjId(String projId) {
		this.projId = projId;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getVer() {
		return ver;
	}

	public void setVer(String ver) {
		this.ver = ver;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public String getEnv() {
		return env;
	}

	public void setEnv(String env) {
		this.env = env;
	}
}